package com.kgc.xs.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.xs.pojo.SalesOut;
import com.kgc.xs.pojo.SalesOutDetail;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface SalesOutRemote {

    @RequestMapping("/selectSalesOutByPage")
    @ResponseBody
    ResponseMsg selectSalesOutByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/updateSalesOut")
    @ResponseBody
    ResponseMsg updateSalesOut(@RequestBody SalesOut salesOut);

    @RequestMapping("/deleteSalesOut")
    @ResponseBody
    ResponseMsg deleteSalesOut(@RequestParam("code") String code);

    @RequestMapping("/insertSalesOut")
    @ResponseBody
    ResponseMsg insertSalesOut(@RequestBody Map<String, Object> map);

    @RequestMapping("/selectSalesOutDetailByPage")
    @ResponseBody
    ResponseMsg selectSalesOutDetailByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/upDateSalesOutDetail")
    @ResponseBody
    ResponseMsg upDateSalesOutDetail(@RequestBody SalesOutDetail salesOutDetail);

    @RequestMapping("/insertSalesOutDetail")
    @ResponseBody
    ResponseMsg insertSalesOutDetail(@RequestBody SalesOutDetail salesOutDetail);

    @RequestMapping("/deleteSalesOutDetail")
    @ResponseBody
    ResponseMsg deleteSalesOutDetail(@RequestBody Map<String, Object> map);








}
